package com.retailcloud.inventoryservice.feign;

import com.retailcloud.commonutils.dto.ProductSearchVo;
import com.retailcloud.commonutils.dto.ProductionInfoVo;
import com.retailcloud.commonutils.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;


/**
 * @author wudi
 * @date 2024/11/8
 * @comment
 */
@FeignClient("retailcloud-search-service")
public interface ProductElasticSearchFeignService {


    @PostMapping("/searchService/save/product")
    R saveProductElasticSearch(@RequestBody List<ProductionInfoVo> productionInfoVoList);

    @PostMapping("/searchService/search/product")
    Map<String,Object> productSearch(@RequestBody ProductSearchVo productSearchVo);

}
